home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 2 / CD ACTUAL VOL 2.iso / docs / slack-do / base / readme < prev   
Encoding:
Text File  |  1995-09-10  |  25.6 KB  |  587 lines

  1. 29/07/95  v3.0    README2: A LINUX-TO-DEMON-INTERNET CONFIGURATION GUIDE
  2.  
  3.     BASE: CONFIGURING SLACKWARE LINUX FOR INTERNET ACCESS AND E-MAIL
  4.     ================================================================
  5.  
  6.     Copyright 1994-5 John A. Phillips.        john@linux.demon.co.uk
  7.  
  8. This README is valid for Slackware 2.3.0, 2.2.0 and 2.1.0.  It describes a 
  9. basic networking set-up using dip as your dialler, SLIP/CSLIP or PPP as the 
  10. serial line protocol, with e-mail using sendmail, deliver and elm.
  11.  
  12. Some of the files you need to install or modify are contained in the
  13. package, for you to copy directly into place.  See the list at the end of
  14. this README.  Configuration should be done as user root.
  15.  
  16. You will occasionally find references such as [12.1] in the text.  These are
  17. section numbers in the NET-2-HOWTO, included with this Linux distribution
  18. (in /usr/doc/faq/howto), containing further relevant information.
  19.  
  20.  
  21. 2A Requirements and installation notes
  22. --------------------------------------
  23. I assume you have installed at least disk sets A and N.  Disk sets AP and F
  24. are strongly recommended.  They contain the manual pages, various editors, 
  25. GNU diffutils, which is (IMHO) indispensable, and the FAQs.  Disk set D is 
  26. recommended for the compilers and other development tools.
  27.  
  28. From amongst the optional packages of disk set N, these are required for
  29. basic network set-up.  Other packages from disk set N are needed for the
  30. other packages in this guide.  Some may also need to be excluded.  Please 
  31. see the relevant README(s) BEFORE you do the complete installation.
  32.  
  33.     elm         Required as your mail user agent, pine is an alternative
  34.     tcpip       Required for networking
  35.     deliver     Required as the local mail delivery agent for sendmail
  36.     mailx       Recommended as a background mail user agent
  37.     pine        Recommended as an alternative mail user agent to elm
  38.     sendmail    Required as the mail transport agent for network mail
  39.     smailcfg    Recommended (for generating your own sendmail config file)
  40.     uucp        Not required unless you also have a uucp mail/news feed
  41.     dip         Required as the dialler for (C)SLIP and PPP access
  42.     ppp         Required (if you want to use PPP)
  43.  
  44. The kernel must have SLIP, CSLIP and/or PPP installed [8] in order to use
  45. the relevant protocol.  You will get an error on trying to connect to DIS if
  46. this is not done.  Some Slackware kernels (those I've tried) have these
  47. already set up but you may be unlucky and have to recompile and reinstall
  48. (see [8] and /usr/src/linux/README).
  49.  
  50. I recommend you do not ask the Slackware install package to configure
  51. networking for you unless you have a separate Ethernet.  The correct set-up
  52. is achieved for (C)SLIP or PPP by following this document.
  53.  
  54. * Please create an unpriveleged user if you don't already have one.  This 
  55. package assumes you have at least one non-root user, because it is not a 
  56. good idea to regularly use ftp, mail, news, etc. from the root account. 
  57. User root should just be used for configuration and other things that can 
  58. only be done as the superuser.
  59.  
  60. Make sure you set a password for root and for all other users you have.
  61. Remember that whilst connected to DIS, your computer is on the Internet. 
  62. People will be able to telnet and ftp into your machine, as well as you
  63. being able to telnet and ftp to other machines.  This can be blocked, but I
  64. don't deal with the methods in this package.  
  65.  
  66. The default Unix editor is vi with which you should become familiar before
  67. starting.  Elm, for example, uses it for composing mail messages.  If you
  68. don't like vi, it is often possible to make programs use another editor, by
  69. adding these lines to one of your shell start-up files (if you use bash as 
  70. your shell - /etc/profile, $HOME/.bash_profile or $HOME/.profile):
  71.  
  72.     EDITOR=/usr/bin/joe
  73.     export EDITOR
  74.     VISUAL=/usr/bin/joe
  75.     export VISUAL
  76.  
  77. In many applications this will cause joe to be used instead of a default 
  78. editor.  This is just an example and some applications have special config 
  79. files you can edit.  I'm told joe looks like WordStar, but you can use any 
  80. other editor that suits you instead.
  81.  
  82.  
  83. 2B Set up the clock
  84. -------------------
  85. You need to decide whether to keep your PC's CMOS clock set to local time,
  86. or set permanently to GMT (alternatively known as UTC).  Using GMT is the 
  87. normal way to achieve automatic winter/summer time corrections in Unix, but 
  88. if you want DOS to have the correct time when you run it, you may have to 
  89. use local time and change the CMOS clock twice a year.
  90.  
  91. * If you are operating your CMOS clock on GMT, edit /etc/rc.d/rc.S to 
  92. change the "/sbin/clock -s" line to read:
  93.  
  94.     /sbin/clock -u -s
  95.  
  96. If you keep your CMOS clock on local time, /etc/rc.d/rc.S is correct, but 
  97. you must, later on, edit certain configuration files to reflect this.  I'll
  98. remind you to do this in the section(s) where the files are set up.
  99.  
  100.  
  101. 2C Set up networking
  102. --------------------
  103. This section assumes you have only one network connection, through your
  104. serial interface and modem using (C)SLIP or PPP.
  105.  
  106. * Set up /etc/hosts [11.4.1].  This file is in the package for you to copy 
  107. into place and configure.  You only need three entries: (i) the loopback 
  108. address; (ii) your own name and address; and (iii) the name and address of 
  109. a router at the DIS end [9.2.5].  Whichever vPoP or tPoP you use, you can 
  110. always use the same router.  Change "158.152.XXX.YYY" to your IP address, 
  111. and use your own (single-word) host name in place of "<YOUR_HOST_NAME>" 
  112. here and throughout this document (and in the example files).
  113.  
  114.     127.0.0.1          localhost
  115.     158.152.XXX.YYY    <YOUR_HOST_NAME>.demon.co.uk    <YOUR_HOST_NAME>
  116.     158.152.1.222      demon-du.demon.co.uk            demon-du
  117.  
  118. Optionally, you can add other machines to this file as well.  I do not 
  119. recommend this, but it will save a little on network traffic in looking up 
  120. IP addresses.  However you must maintain the list properly, and any changes 
  121. of IP address are not automatically followed.  See "Demon.txt" in the DIS 
  122. documentation for a current list of Demon's machines.
  123.  
  124. As an optional alternative to keeping /etc/hosts up to date with extra 
  125. host names to speed up name resolution, the BIND package gives details of 
  126. how to run a name server (named) [11.4.2] to keep a local cache of names 
  127. and IP addresses for the machines you use often.
  128.  
  129. * Check /etc/networks [11.4.3].  It should have only the following line
  130. (apart from comments):
  131.  
  132.     loopback    127.0.0.0
  133.  
  134. NOTE: the lines "default 0.0.0.0" and "localnet 158.152.0.0" are recommended
  135. in the current NET-2-HOWTO.  However they make no difference in my case.
  136.  
  137. * Check the file /etc/host.conf [11.4.4].  It should read as follows:
  138.  
  139.     order hosts, bind
  140.     multi on
  141.  
  142. This orders the name resolver to look first in /etc/hosts for IP addresses
  143. for a specified name, before asking the name server(s) in /etc/resolv.conf 
  144. (bind).  It also allows multiple IP addresses per host name.
  145.  
  146. * In /etc/resolv.conf [11.4.5] (the file is in this package) you should
  147. specify Demon's name servers (by IP address).  It should read as follows:
  148.  
  149.     search demon.co.uk
  150.     nameserver 158.152.1.65
  151.     nameserver 158.152.1.193
  152.     nameserver 192.68.174.95
  153.  
  154. * Set up the /etc/HOSTNAME file [11.4.6] to contain a single line with your
  155. fully-qualified domain name (fqdn), like this:
  156.  
  157.     <YOUR_HOST_NAME>.demon.co.uk
  158.  
  159. * Edit the fall back fqdn in /etc/rc.d/rc.M.  This isn't really required,
  160. because you've already set up /etc/HOSTNAME, but it tidies up a loose end.
  161.  
  162.     ...
  163.     # If there's no /etc/HOSTNAME, fall back on this default:
  164.     if [ ! -r /etc/HOSTNAME ]; then
  165.       echo "<YOUR_HOST_NAME>.demon.co.uk" > /etc/HOSTNAME
  166.     fi
  167.     ...
  168.  
  169. * Check /etc/rc.d/rc.inet1 [9.3, 9.3.1].  It just needs to configure the 
  170. loopback interface [9.4] and then add the route to the loopback net.  If you 
  171. do not have any network connection other than the serial interface using 
  172. (C)SLIP or PPP, these should be the only lines (apart from comments and 
  173. local shell assignments):
  174.  
  175.     /sbin/ifconfig lo 127.0.0.1
  176.     /sbin/route add -net 127.0.0.0
  177.  
  178. If you want to be able to refer to your machine by name when you are not
  179. connected to DIS (rather than just calling it localhost), then you should 
  180. arrange for the dummy interface to be compiled into the kernel [8] (if it 
  181. is not already) and place these commands in /etc/rc.d/rc.inet1.
  182.  
  183.     /sbin/ifconfig dummy <YOUR_HOST_NAME>.demon.co.uk 
  184.     /sbin/route add -host <YOUR_HOST_NAME>.demon.co.uk
  185.  
  186. Using the dummy interface can get over occasional problems associated with 
  187. a networked machine that is only sometimes connected to the Internet.
  188.  
  189. If you used the Slackware network configuration option, then the Ethernet
  190. parts of this file will be set up which will cause non-fatal errors at boot
  191. time (assuming you actually have no Ethernet card).
  192.  
  193. * Check /etc/rc.d/rc.inet2 [9.3, 9.3.2, 11.1, 11.2].  It is probably correct 
  194. but should contain the following essential bits (there may be other bits as 
  195. well - don't change them yet!):
  196.  
  197.     # Constants.
  198.     NET="/usr/sbin"
  199.  
  200.     echo -n "Starting daemons:"
  201.  
  202.     # Start the SYSLOGD/Klogd daemons.  These must come first.
  203.     if [ -f ${NET}/syslogd ]
  204.     then
  205.         echo -n " syslogd"
  206.         ${NET}/syslogd
  207.         echo -n " klogd"
  208.         ${NET}/klogd
  209.     fi
  210.  
  211.     # Start the INET SuperServer
  212.     if [ -f ${NET}/inetd ]
  213.     then
  214.         echo -n " inetd"
  215.         ${NET}/inetd
  216.     else
  217.         echo "no INETD found.  INET cancelled!"
  218.         exit 1
  219.     fi
  220.  
  221. Other daemons, such as the line printer daemon (lpd), name server (named), 
  222. SUN RPC portmapper, etc. may also be started here.  Decide later whether 
  223. you want to run them or not.  They are not essential for a basic network 
  224. service (and running routed can actually break your IP connection).  Leave 
  225. rc.inet2 as it is for now if the essential bits above are in place.
  226.  
  227.  
  228. 2D Set up sendmail
  229. ------------------
  230. There are other Mail Transport Agents (MTAs) such as Smail.  This section
  231. assumes you are setting up sendmail.
  232.  
  233. * Install /etc/sendmail.cf, the configuration file for sendmail.  The 
  234. file produced by the Slackware installation scripts (using the SMTP+BIND 
  235. option) is good but not 100% accurate for a system only intermittently 
  236. connected to the Internet.  The sendmail.cf file contained in this package 
  237. needs no editing and should be installed instead.  
  238.  
  239. The m4 file, linux.demon.mc, which I used to generate this sendmail.cf is 
  240. included as well.  If you ever want to create a sendmail.cf, install the file 
  241. in /usr/src/sendmail/cf/cf and run "m4 linux.demon.mc" in that directory.
  242.  
  243. * In /etc/rc.d/rc.M, remove the "-q 15m" from the line that runs sendmail 
  244. (and from the "echo" line above it).  If you leave the option there, sendmail 
  245. will try to deliver queued mail to the network every 15 minutes.  If you are 
  246. not on-line and there is mail in the queue, it will leave an error message 
  247. in one of the logfiles every time.  The mail queue is explicitly processed,
  248. whenever you connect, by scripts that are installed later, so it is not
  249. normally necessary to ask the sendmail daemon to try delivery on its own.
  250.  
  251. * Install /etc/aliases, the global mail aliases list.  You should alias mail
  252. for at least root, postmaster, MAILER-DAEMON, usenet and news to real users. 
  253. The user postmaster is required for all hosts connected to the Internet. 
  254. Since sendmail employs the pseudo-user MAILER-DAEMON, it is a good idea to
  255. make sure someone receives any mail for this user (e.g. error reports from
  256. MAILER-DAEMON that bounce back).  The users news and usenet may receive
  257. error messages from C News or INN - someone should see these.  Finally, the
  258. root account should not normally be used for mail.  /etc/aliases should have
  259. these entries, with your own non-root user(s) substituted for <USERNAME>:
  260.  
  261.     usenet:news
  262.     news:<USERNAME>
  263.     postmaster:<USERNAME>
  264.     root:<USERNAME>
  265.     MAILER-DAEMON:<USERNAME>
  266.  
  267. This file is in the package and may be copied into place then configured. 
  268. You can add other aliases here later if you wish (after which you need to
  269. install the new aliases as described below).
  270.  
  271. * Re-boot now (with "shutdown -t3 -r now" or just Control-Alt-Del) to get the
  272. system name right after the previous edits and run sendmail with the correct
  273. configuration file.  Then log in as root and run the following command to
  274. install the aliases:
  275.  
  276.     /usr/sbin/sendmail -bi
  277.  
  278. This creates /etc/aliases.dir and /etc/aliases.pag (database files containing 
  279. your aliases in dbm format).  Running the command "newaliases" is equivalent.
  280.  
  281.  
  282. 2E Set up basic network access
  283. ------------------------------
  284. * Install the following files from the package:
  285.  
  286.     /usr/local/sbin/start.dip
  287.     /usr/local/sbin/stop.dip
  288.     /usr/local/sbin/querypost
  289.     /usr/local/sbin/querystatus
  290.     /usr/local/sbin/setclock
  291.  
  292. No configuration is required for the first four.  If you decided in section 
  293. 2B to run your CMOS clock on local time rather than GMT, edit the first 
  294. executable line of setclock, changing the default zone from "GMT" to "local".
  295.  
  296. If you want to shut down the connection automatically after a certain period
  297. with no (C)SLIP traffic, controlled from your side of the DIS link, you will 
  298. need to install the slip_idle source code from ftp.demon.co.uk in directory 
  299. /pub/linux/Demon and edit the end of start.dip.  I believe there is an 
  300. equivalent pppd_idle package in Demon.v3.4.tar.gz in the above directory.
  301.  
  302.  
  303. 2F Set up (C)SLIP
  304. -----------------
  305. * Install /usr/local/etc/demon_slip.dip, the (C)SLIP dialler script from the 
  306. package.  Make sure it is owned by root and cannot be read by anyone else 
  307. (since it will contain your login name and password).
  308.  
  309. You must edit this to set your own hostname (twice), password, your gateway
  310. (PoP) telephone number, the modem port, the DTE speed (how fast your
  311. computer talks to the modem), and the modem set-up commands.  See Demon's
  312. "Modem.txt" and the instructions for your modem for details of the correct
  313. set-up requirements.  Depending on your modem, it is possible you may have
  314. to make significant changes to this script, to deal, for example, with busy
  315. tones or other failures.
  316.  
  317. You may also wish to edit the script to set idle=0 in the protocol line at
  318. login if you wish Demon's machine to keep the connection up even if no
  319. traffic is being sent or received.  The example script asks (with idle=240)
  320. for the link to be dropped after four minutes of idling.
  321.  
  322.  
  323. 2G Set up PPP
  324. -------------
  325. * Install /usr/local/etc/demon_ppp.dip, the PPP dialler script from the 
  326. package.  Make sure it is owned by root and cannot be read by anyone else 
  327. (since it will contain your login name and password).  You must configure 
  328. this file.  It is just like setting up demon_slip.dip (section 2F), except 
  329. that you only have to set your own hostname once.
  330.  
  331. * Copy into /etc/ppp the files in ./ppp from this package.  No editing is 
  332. needed.  The installed files are:
  333.  
  334.     /etc/ppp/ip-up
  335.     /etc/ppp/ip-down
  336.     /etc/ppp/options
  337.  
  338. * For Slackware 2.1.0 and 2.2.0, copy dip-3.3.7m from this package into 
  339. /sbin.  Then make static links to it from /sbin/dip and /sbin/diplogin 
  340. using the following commands:
  341.  
  342.     cd /sbin
  343.     ln -sf dip-3.3.7m dip
  344.     ln -sf dip-3.3.7m diplogin
  345.  
  346. NOTE:  dip-3.3.7i (Slackware 2.1.0) and dip-3.3.7l (Slackware 2.2.0) will 
  347. not work with PPP, although they will work with (C)SLIP.
  348.  
  349. * For Slackware 2.3.0, the original dip-3.3.7n knows about PPP but thinks 
  350. pppd is in directory /usr/sbin.  Fix this with the following commands:
  351.  
  352.     cd /usr/sbin
  353.     ln -s ../lib/ppp/pppd pppd
  354.  
  355.  
  356. 2H Set up elm
  357. -------------
  358. There are other Mail User Agents (MUAs) such as pine.  This section assumes
  359. you are setting up elm.
  360.  
  361. * Edit /var/lib/elm/elm.rc to tell elm about your machine and its names.  
  362. You need to set up the following lines:
  363.  
  364.     hostname = <YOUR_HOST_NAME>
  365.     hostdomain = .demon.co.uk
  366.     hostfullname = <YOUR_HOST_NAME>.demon.co.uk
  367.  
  368. * Install /var/lib/elm/aliases.text to specify the global elm aliases. These 
  369. are used on mail from local elm users.  They should duplicate the aliases 
  370. for sendmail (which are used for mail arriving from the network).  This file 
  371. is in the package and may be copied into place and configured with your own 
  372. non-root user(s) substituted for <USERNAME>:
  373.  
  374.     usenet = Local Usenet Administrator = news
  375.     news = Local Usenet Administrator = <USERNAME>
  376.     postmaster = Local Postmaster = <USERNAME>
  377.     root = Local System Administrator = <USERNAME>
  378.     MAILER-DAEMON = Local Sendmail MAILER-DAEMON = <USERNAME>
  379.  
  380. * After setting this up, run
  381.  
  382.     newalias -g
  383.  
  384. to install the aliases (this creates the files aliases, aliases.dir and
  385. aliases.pag).  After adding more aliases in the future you must run
  386. "newalias -g" again to install them.
  387.  
  388. * If you want to run elm whenever you type "mail" (as well as "elm"), you
  389. should make sure your users have the command mail aliased to elm, so elm
  390. becomes their foreground mailer.  A line in /etc/profile such as:
  391.  
  392.    alias mail=elm
  393.  
  394. will do this (for all bash users).  The same line in the file
  395. .bash_profile in each user's home directory will also work for bash.
  396.  
  397. * The text (up to the first four lines) in the file .signature in your 
  398. home directory will be added to the end of news posts as a signature.  To 
  399. make sure elm knows this file as well (assuming you want the same signature 
  400. on your mail), add the line "signature = ~/.signature" to ~/.elm/elmrc.  
  401. Run elm first to create the ~/.elm directory and set up a default elmrc 
  402. file if it's not there already.
  403.  
  404. * For Slackware 2.2.0 only, fix a bug that stops elm from working, with:
  405.  
  406.     chmod 771 /var/spool/mail
  407.  
  408. E-mail should now work.  Mail to users on your site should be delivered
  409. immediately.  Off-site mail should go into the mail queue (use "mailq" to
  410. see it).  You can send test mail to your own site via Demon by addressing 
  411. it to either @post.demon.co.uk:<USERNAME>@<YOUR_HOST_NAME>.demon.co.uk, or
  412. <USERNAME>%<YOUR_HOST_NAME>.demon.co.uk@post.demon.co.uk.
  413.  
  414. Please test mail, if you wish to, as a non-root user.  Using root to receive
  415. and send mail is often considered a security risk.
  416.  
  417.  
  418. 2I Check access to Demon Internet Services
  419. ------------------------------------------
  420. At this point, you will be able to send and receive mail, and ftp, telnet 
  421. etc. will work.  I assume here that your DIS account is already set up and 
  422. working and that you don't need to do anything special to log on.
  423.  
  424. If you wish to prevent incoming mail from arriving whilst you test other 
  425. networking services, find the PID of the sendmail daemon with "ps -aux", 
  426. and kill the process with "kill <PID>".  To start receiving mail again, 
  427. either re-boot or re-start sendmail with "/usr/sbin/sendmail -bd".
  428.  
  429. * To connect, run this command:
  430.  
  431.     /usr/local/sbin/start.dip slip
  432.  
  433. Just "start.dip" on its own is equivalent, since I have made slip the
  434. default.  DIP should execute the script in demon_slip.dip and the system 
  435. should log in automatically with (C)SLIP.  The network connection should 
  436. be active when the command prompt comes back.  If you need to interrupt 
  437. start.dip, it may be necessary to press Control-C twice.
  438.  
  439. If you want to use PPP, use "start.dip ppp" instead.  Alternatively, edit
  440. the first executable line of start.dip and change "slip" to "ppp" if you
  441. wish start.dip to use PPP by default instead of (C)SLIP.
  442.  
  443. * To do a test ftp transfer on a couple of files, log in to your machine, 
  444. as an ordinary user, on another virtual terminal (e.g.  press Alt-F2 for 
  445. VT2, or Ctrl-Alt-F2 to get there from X-windows), and execute:
  446.  
  447.     $ cd /tmp
  448.     $ ftp ftp.demon.co.uk
  449.      ... Name: anonymous
  450.      ... Password: <USERNAME>@<YOUR_HOST_NAME>.demon.co.uk
  451.     ftp> cd /pub/test
  452.     ftp> bin
  453.     ftp> hash
  454.     ftp> get fullfile
  455.     ftp> get regularfile
  456.     ftp> quit
  457.     $ 
  458.  
  459. Other commands like "telnet", "traceroute", "whois", "finger", etc. should 
  460. also work.  Please see the manual pages for further details.
  461.  
  462. * To close down the connection, go back to the root terminal (press Alt-F1 
  463. if you logged root onto VT1), and run this command:
  464.  
  465.     /usr/local/sbin/stop.dip
  466.  
  467. Wait a few seconds and then check that the phone line has been put back on
  468. hook.  If DIP fails to cause the modem to hang up, turn off the power to 
  469. your modem for a few seconds, or pull out the plug.  You should be able to 
  470. set up the modem via the initialization commands in demon_slip.dip and 
  471. demon_ppp.dip to hang up when DIP hangs up.  DIP negates (drops) the DTR 
  472. line when it hangs up; your modem's documentation should show you how to 
  473. hang up the line when DTR is negated.  The command &D2 is common but not 
  474. universal.  See Modem.txt and your modem's documentation for help.
  475.  
  476. If you have a V.32bis/V.42bis modem (14400 bits/second with compression),
  477. and things are not very busy at the DIS end, you should have received
  478. fullfile (102400 bytes) in about 64 seconds (about 1.6 kbytes/second), and
  479. regularfile (102400 bytes) in about 37 seconds (about 2.7 kbytes/second). 
  480. If your modem's V.42bis compression has better than minimum performance,
  481. regularfile may arrive more quickly, at up to 3.7 kbytes/second.  This
  482. assumes a DTE rate of 38,400 bps or more.  At a DTE rate of 19,200 bps,
  483. regularfile may only arrive at about 1.9 kbytes/second.
  484.  
  485. If you have a V.34 modem and can drive the serial port at 57,600 bps or
  486. preferably greater, you may get up to twice the download speeds above.
  487.  
  488.  
  489. 2J Trouble?
  490. -----------
  491. For de-bugging purposes, I suggest you try, in this order:
  492.  
  493.     ping -c5 127.0.0.1
  494.     ping -c5 localhost
  495.     ftp localhost
  496.     ping -c5 demon-du.demon.co.uk
  497.     ping -c5 ftp.demon.co.uk
  498.     ftp ftp.demon.co.uk
  499.  
  500. These commands try out increasing levels of networking service.  Those which 
  501. work and those which don't, and especially the error messages from the 
  502. failures, may give clues as to what is wrong.  The first three should work 
  503. properly off-line, and trying the next two off-line provides useful data 
  504. from the error messages.  Make sure you try the last three on line as well.
  505.  
  506. If ping works to external machines, but other things, such as ftp and telnet 
  507. do not, it is possible that the DIS gateway machine you are using understands 
  508. SLIP but not CSLIP (clootie in Edinburgh has had, and may still have this 
  509. problem).  In this case change the "mode CSLIP" line in demon_slip.dip to 
  510. "mode SLIP".  Alternatively try PPP which avoids this problem.
  511.  
  512. If the modem appears locked, but in fact it is not, this could be because
  513. dip is sometimes bad at removing its lock file /var/spool/uucp/LCK..ttyS1
  514. (or LCK..ttyS0 etc.).  This lock file may have been left behind by a
  515. previous dip session.  Remove this file by hand if pppd complains when the
  516. modem is actually available.
  517.  
  518. If you get the "network unreachable" error with "DIP: tty: set_disc(1):
  519. Invalid argument" when DIP is run, it means you don't have SLIP and/or CSLIP
  520. compiled into your kernel.  You will need to re-compile and re-install the
  521. kernel using the instructions in /usr/src/linux/README [8].
  522.  
  523. A "network unreachable" error on its own suggests some other configuration
  524. fault.  There are, unfortunately, too many possible causes of this for
  525. specific advice here to be useful.  The commands "ping", "route", "netstat", 
  526. "ifconfig", "cat /proc/net/dev" etc. are useful for de-bugging.  Please see 
  527. the manual pages for further information.
  528.  
  529.  
  530. 2K Summary and notes
  531. --------------------
  532. At this point, your basic set-up is complete.  You go on-line with the
  533. command /usr/local/sbin/start.dip (or just start.dip).  You can use either
  534. "ppp" or "slip" as a parameter to start.dip to explicitly select the serial
  535. line protocol, rather than just using the default.  You go off-line with
  536. /usr/local/sbin/stop.dip.  These commands must be executed by user root.
  537.  
  538. When you go on-line, your CMOS clock is updated from a network time server 
  539. (and you can run the "setclock" script separately if you wish).  Also your 
  540. mail is checked and a list is printed on the screen (again, you can run 
  541. "querypost" separately).  Finally, Demon's status messages are fetched and 
  542. printed (using the "querystatus" script, which can also be run separately).
  543.  
  544. You will get incoming mail delivered whenever you go on-line, and mail will
  545. also be delivered to you periodically whilst you remain on-line.  Mail that
  546. has arrived on your machine should be readable with the command "elm" (or
  547. "mail" if you log in after setting up an alias for elm).
  548.  
  549. Outgoing mail will be put into the mail queue if you send it whilst you are 
  550. off-line (revealed by running "mailq").  When you go on-line, start.dip will
  551. automatically send any queued mail to the network.  Whilst on-line, sendmail
  552. will immediately pass to the network any mail you send.  To force sendmail
  553. to try delivering queued mail, run "/usr/sbin/sendmail -q" when on-line.
  554.  
  555. To check if any of your network connections are still active, you can run 
  556. "netstat -t", or "netstat -nt".  When connections reach the TIME_WAIT state, 
  557. they have completed, and will not be interrupted by a shut down.
  558.  
  559.  
  560. 2L Files in this package
  561. ------------------------
  562.  
  563. File name (Slackware)                    Location in this package
  564. =====================                    ========================
  565. /var/lib/elm/aliases.text                base/elm/aliases.text
  566.  
  567. /etc/aliases                             base/etc/aliases
  568. /usr/local/etc/demon_ppp.dip             base/etc/demon_ppp.dip
  569. /usr/local/etc/demon_slip.dip            base/etc/demon_slip.dip
  570. /etc/hosts                               base/etc/hosts
  571. /usr/src/sendmail/cf/cf/linux.demon.mc   base/etc/linux.demon.mc
  572. /etc/resolv.conf                         base/etc/resolv.conf
  573. /etc/sendmail.cf                         base/etc/sendmail.cf
  574.  
  575. /etc/ppp/ip-down                         base/ppp/ip-down
  576. /etc/ppp/ip-up                           base/ppp/ip-up
  577. /etc/ppp/options                         base/ppp/options
  578.  
  579. /sbin/dip-3.3.7m                         base/sbin/dip-3.3.7m
  580. /usr/local/sbin/querypost                base/sbin/querypost
  581. /usr/local/sbin/querystatus              base/sbin/querystatus
  582. /usr/local/sbin/setclock                 base/sbin/setclock
  583. /usr/local/sbin/start.dip                base/sbin/start.dip
  584. /usr/local/sbin/stop.dip                 base/sbin/stop.dip
  585.  
  586. END OF README2
  587.